
package cn.edu.scau.cmi.hombio.dao;

import cn.edu.scau.cmi.hombio.domain.Inspection;

import java.util.Calendar;
import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage Inspection entities.
 * 
 */
public interface InspectionDAO extends JpaDao<Inspection> {

	/**
	 * JPQL Query - findInspectionByMemoContaining
	 *
	 */
	public Set<Inspection> findInspectionByMemoContaining(String memo) throws DataAccessException;

	/**
	 * JPQL Query - findInspectionByMemoContaining
	 *
	 */
	public Set<Inspection> findInspectionByMemoContaining(String memo, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findInspectionById
	 *
	 */
	public Inspection findInspectionById(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findInspectionById
	 *
	 */
	public Inspection findInspectionById(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findInspectionByPrimaryKey
	 *
	 */
	public Inspection findInspectionByPrimaryKey(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findInspectionByPrimaryKey
	 *
	 */
	public Inspection findInspectionByPrimaryKey(Integer id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findInspectionByMemo
	 *
	 */
	public Set<Inspection> findInspectionByMemo(String memo_1) throws DataAccessException;

	/**
	 * JPQL Query - findInspectionByMemo
	 *
	 */
	public Set<Inspection> findInspectionByMemo(String memo_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findInspectionByTime
	 *
	 */
	public Set<Inspection> findInspectionByTime(java.util.Calendar time) throws DataAccessException;

	/**
	 * JPQL Query - findInspectionByTime
	 *
	 */
	public Set<Inspection> findInspectionByTime(Calendar time, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllInspections
	 *
	 */
	public Set<Inspection> findAllInspections() throws DataAccessException;

	/**
	 * JPQL Query - findAllInspections
	 *
	 */
	public Set<Inspection> findAllInspections(int startResult, int maxRows) throws DataAccessException;

}